package com.xyy.yueshijia.modle;

import com.xyy.yueshijia.api.RetrofitManager;
import com.xyy.yueshijia.bean.shop.SpecialBean;

import java.util.Map;

import rx.Observable;
import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by lxs on 2017/2/10.
 */

public class GoodsSpeciaModel {

    public void getSpeciaData(Map<String, String> params, Subscriber<SpecialBean> subscriber) {

        Observable<SpecialBean> observable = RetrofitManager.getSingleton()
                .getIApiService()
                .getGoodsSpeciaData(params);

        observable.subscribeOn(Schedulers.newThread())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(subscriber);
    }


}
